home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!news
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c
- Subject: Re: PUBLIC / PRIVATE
- Date: Fri, 19 Apr 1996 00:53:57 GMT
- Organization: Netcom
- Message-ID: <3176e39c.95136939@nntp.ix.netcom.com>
- References: <4l3k8d$hkp@mulga.cs.mu.OZ.AU>
- NNTP-Posting-Host: ix-dc6-10.ix.netcom.com
- X-NETCOM-Date: Thu Apr 18 7:53:52 PM CDT 1996
- X-Newsreader: Forte Agent .99d/32.182
-
- simc@mundil.cs.mu.OZ.AU (Falchion) wrote:
-
- > I'm analysing some C source code and I've
- > come across PUBLIC and PRIVATE keywords
- >
- > eg PUBLIC char * app_name = "Lynx";
- >
- > PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
- > s, int, l) { fwrite(s, 1, l, me->fp) }
- >
- >
- > I though C didn't have PUBLIC or PRIVATE ?
- > It definitely doesn't look like C++ source code - it looks like
- > C code with PUBLIC and PRIVATE keywords scattered everywhere.
- >
- > 2nd question:
- > PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
- > s, int, l) { fwrite(s, 1, l, me->fp) }
- >
- > What is the ARGS3 ?
- > I'm accustomed to
- > return_type function_name(args) { ... }
-
- You were correct -- C does not have the keywords PUBLIC or PRIVATE.
- Nor does it define ARGS3. Look at the header files to see how this
- code #defines them. PRIVATE is probably #defined as static and PUBLIC
- as either extern or empty. I've no idea what ARGS3 is.
-
-
- Michael M Rubenstein
-